<template>
  <div class="pagination-container">
<div class="block">
    <el-pagination
      @current-change="handleCurrentChange"
      :current-page.sync="currentPage1"
      :page-size="pagesize"
      layout="total, prev, pager, next, jumper"
      :total="total">
    </el-pagination>
  </div>
  </div>
</template>

<script>
export default {
  name: '',
  data () {
    return {
        currentPage1: 1,

    }
  },
  props:{
    pagesize:{
      type:Number,
      default: 1,
    },
    total:{
      type:Number,
      default: 1,
    }
  },
  methods: {
      handleCurrentChange(page) {
        this.$emit('changepage',page);
      },
      changecurrentpage(page){
        this.currentPage1=page;
      }
  },
  mounted () {

  }
}
</script>

<style lang="less" scoped>

</style>
